package com.modificial.springboot.hello;

import org.springframework.web.bind.annotation.*;

/**
 * @author modificial
 * @data 2018/12/3
 * @since 8:09
 */
@RestController
@RequestMapping("/hello")
public class HelloController {
    /**
     * get请求
     *
     * @return
     */
    @GetMapping("/get")
    public String get() {

        return "HelloWorld";
    }

    /**
     * post请求
     *
     * @return
     */
    @PostMapping("/post")
    public String post() {

        return "HelloWorld";
    }

    /**
     * delete请求
     *
     * @return
     */
    @DeleteMapping("/delete")
    public String delete() {

        return "HelloWorld";
    }

    /**
     * put请求
     *
     * @return
     */
    @PutMapping("/put")
    public String put() {

        return "HelloWorld";
    }

    /**
     * patch请求
     *
     * @return
     */
    @PatchMapping("/patch")
    public String patch() {

        return "HelloWorld";
    }
}
